#ifndef __KEYSCAN_H
#define __KEYSCAN_H
#include "stm32f1xx.h"


#define KEY_POWR_MASK		0x01
#define KEY_UP_MASK	0x02
#define KEY_DOWN_MASK	0x04

#define POWER_ON	0
#define POWER_OFF	0XFF

void keyscan_pin_init(void);
void check_the_powers_status(void);
void press_key_continue(void);
void charge_dir_dispose(uint8_t dirr);
void set_power_on_int(uint8_t tatus);

#endif
